package com.zzedu.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzedu.domain.ZzSubjectContent;
import com.zzedu.dto.ZzSubjectContentDTO;
import com.zzedu.params.content.ZzSubjectContentParams;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * 题目内容Service接口
 *
 * @author Mr.Wang
 * @date 2025-04-12
 */
public interface IZzSubjectContentService extends IService<ZzSubjectContent> {
    /**
     * 构造查询条件
     */
    public LambdaQueryWrapper<ZzSubjectContent> buildQuery(ZzSubjectContentDTO zzSubjectContentDTO);


    ZzSubjectContent save(ZzSubjectContentParams zzSubjectContentParams) throws Exception;

    Object selectById(Long id);

    IPage<Map<String, Object>> getSubmitDataByDate(IPage page, LocalDateTime start, LocalDateTime end);

    /**
     * 根据绘本ID 获取作业数量
     *
     * @param id
     * @return
     */
    long getCountByBookId(Long id);
}
